//6:在给定的一个整数数组中（ 长度是15），要求查找输入的数字出现的次数。
public class Task2 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int[] arr = new int[15];
        int count = 0;
        for (int i = 0; i < arr.length; i++) {
            System.out.println("Please input No." + (i + 1));
            arr[i] = in.nextInt();
        }
        System.out.println("Please input the number you want to search for:");
        int num = in.nextInt();
        for (int i = 0; i < arr.length; i++) {

            if (num == arr[i]) {
                count++;
            }
        }
        System.out.println("The number you want to serch for appears " + count + " time(s)!");
    }